export default {
	data() {
		return {
			id: '',
			payStatus: 0,
			orderInfo: {},
			type: 0
		}
	},
	onLoad(e) {
		this.id = e.id
		console.log(e, this.id);
		this.payStatus = e.payStatus
		this.type = e.type
		uni.setNavigationBarTitle({
			title: this.payStatus ? '兑换成功' : '兑换失败'
		})
	},
	methods: {
		//返回
		goBack(e) {
			if (e == 1) {
				uni.navigateBack({
					delta: 1
				});
			} else {
				uni.redirectTo({
					url: '/pages/my/coupon/index'
				})
			}
		}
	}
}